package com.wejoy.video.middle.station.data.service.workorder;

import com.wejoy.video.middle.station.data.domain.workorder.WorkOrderProcess;

import java.util.List;

/**
 * 工单处置描述表
 *
 * @author miracle_j
 * @date 2022年11月17日 14:35:58
 */
public interface IWorkOrderProcessService {
    /**
     * 保存或更新
     * @param req
     */
    void save(WorkOrderProcess req, String operator,Long operatorId);

    /**
     * 插入
     *
     * @param workOrderProcess workOrderProcess
     * @return int
     */
    int insertSelective(WorkOrderProcess workOrderProcess);

    /**
     * 主键更新
     *
     * @param workOrderProcess workOrderProcess
     * @return int
     */
    int updateSelectiveById(WorkOrderProcess workOrderProcess);

    /**
     * 数量
     *
     * @param workOrderProcess workOrderProcess
     * @return int
     */
    int getCount(WorkOrderProcess workOrderProcess);

    /**
     * 主键查询
     *
     * @param id id
     * @return WorkOrderProcess
     */
    WorkOrderProcess getOneById(Long id);

    /**
     * 多条
     *
     * @param workOrderProcess workOrderProcess
     * @return List<WorkOrderProcess>
     */
    List<WorkOrderProcess> getList(WorkOrderProcess workOrderProcess);

    /**
     * 分页
     *
     * @param workOrderProcess workOrderProcess
     * @return List<WorkOrderProcess>
     */
    List<WorkOrderProcess> getPageList(WorkOrderProcess workOrderProcess);

    /**
     * 审核
     * @param id
     * @param operator
     */
    void audit(Long id, String operator);

    /**
     * 取消审核
     * @param id
     * @param operator
     */
    void unaudit(Long id, String operator);

    /**
     * 删除
     * @param id
     * @param operator
     */
    void delete(Long id, String operator);
}
